global nCursor1, nMask1, nCursor2, nMask2, nCursor3, nMask3, bVideoOn, NumCd
set NumCd to 2
set bVideoOn to 0
set nCursor1 to the number of member "Cursor1"
set nMask1 to the number of member "Mask1"
set nCursor2 to the number of member "Cursor2"
set nMask2 to the number of member "Mask2"
set nCursor3 to the number of member "Cursor3"
set nMask3 to the number of member "Mask3"
sound stop 1
sound stop 2
end
on punt
repeat with xx = 91 to 102
set the regPoint of member xx of castLib "elementos graficos" to point(293, -138)
end repeat
end
on dipunt
repeat with xx = 91 to 102
put the regPoint of member xx of castLib "elementos graficos"
end repeat
end
on coordenadas
put "if the mouseV >= " & the locV of sprite 4 & " and the mouseH >= " & the locH of sprite 4 & " and the mouseV <= " & the locV of sprite 4 + the height of sprite 4 & " and the mouseH <= " & the locH of sprite 4 + the width of sprite 4 & " then"
end
on snapshot v1, h1, v2, h2
global sPathIni, sMensaje01
if azReadDir(sPathIni & "snapshot\*.*") = [] then
if not azCreatDir(sPathIni & "snapshot") then
alert("Unable to create directory")
end if
end if
openXLib(sPathIni & "Capture.dll")
openXLib(sPathIni & "Fileio.dll")
set oGrab to Capture(mnew, v1 + the stageTop, h1 + the stageLeft, v2 + the stageTop, h2 + the stageLeft)
set bLleno to 0
repeat with xx = 0 to 100
if xx = 100 then
set bLleno to 1
end if
set sOrden to string(xx)
if xx < 10 then
set sOrden to "0" & sOrden
end if
set sFitxer to sPathIni & "snapshot\vtm_fp" & sOrden & ".BMP"